<link type="text/css" rel="stylesheet" href="http://www.12301.cc/tpl/publish_coupons/css/publish_coupons.css" />
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<div class="conmone" id="conmone">
	<ul id="tabHead" class="tabHead clearfix">
        <li class="profit">发布优惠券</li>
    </ul>
	<form id="conpu_form">
	<input type="hidden" name="action" value="coupon_create">
		<div class="coupons_con">
			<div class="_dname">
				<span class="coupons_dname">名称：</span>
				<input type="text" name="coupon_name" class="coupons_title coupon_dname" value="">
			</div>
			<div class="_dname">
				<span class="coupons_dname">面额：</span>
				<input type="text" name="coupon_value" class="coupons_title coupon_num" value="">
			</div>
			<div class="_dname"> 
				<span class="coupons_dname" id="counter-time">有效期：</span>
				<div class="coup_select">
					<input type="radio" name="e_type" value="1" class="coupons_che coupon_time"  />
				</div>
				<div class="conmone_time">
					<input type="text" data-t="bt" id="txtStartTime"  name="effective_start" data-msg="请选择时间段" class="texbettime" autocomplete="off"/> 至
					<input type="text" data-t="et" id="txtEndTime"  name="effective_end" data-msg="请选择时间段" class="texendtime" autocomplete="off"/>
					<i class="calendarBtn c1"></i>
					<i class="calendarBtn c2"></i>
				</div>
				<div class="coup_select">
					<input type="radio" name="e_type" value="0" class="coupons_che coupon_today"  />
					<span class="coup_titile">获得优惠券当日有效</span>
				</div>
			</div>
			<div class="_dname">
				<span class="coupons_dname_t">适用产品：</span>
				<div class="seamles">
					<span class="select_btn btn_choose">选择</span>
				</div>
				<div class="seamlet">
					<p class="select_t">适用所有产品</p>
					<p class="select_t">选择部分产品时，最多列出两行产品，逗号隔开</p>
				</div>
			</div>
			<div class="_dname">
				<span class="coupons_dname"> 销售渠道：</span>
				<div class="conf_list">
					<ul class="selectlist">
						<li><input class="check a1" name="use_channel[]" type="checkbox" value="1">微信</li>
						<li><input class="check a2" name="use_channel[]" type="checkbox" value="2">二级店铺</li>
						<li><input class="check a3" name="use_channel[]" type="checkbox" value="3">自助机</li>
						<span class="conf_tt">（可多选）</span>
					</ul>
				</div>
			</div>
			<div class="_dname">
				<span class="coupons_dname">消费限制：</span>
				<div class="coupos_limit">
					<span class="font">消费满</span>
					<input type="text" class="money_coupos" name="condition" value="">
					<span class="font">&nbsp;元可用</span>
					
				</div>
			</div>
			<div class="_dname">
				<span class="coupons_dname">使用限制：</span>
				<div class="conf_list">
					<ul class="selectlist">
						<li><input class="check a1" name="use_limit" type="radio" value="1">不限</li>
						<li><input class="check a2" name="use_limit" type="radio" value="2">一张</li>
						<li><input class="check a3" name="use_limit" type="radio" value="3">订票数</li>
					</ul>
				</div>
			</div>
			<span class="line"></span>
			<!-- <div class="_dname">
					<span class="coupons_dname">发行方式：</span>
					<select name="coupos_type" id="conSelect" class="coupons_se">
						<option value="1">领取</option>
						<option value="2">派发</option> 
					</select>
			</div> -->
			<div class="_dname"> 
				<span class="coupons_dname" >领取期限：</span>
				<div class="conmone_time_">
					<input type="text" data-t="bt" id="txtStartTime_"  name="collect_startdate" data-msg="请选择时间段" class="texbettime_" autocomplete="off"/> 至
					<input type="text" data-t="et" id="txtEndTime_"  name="collect_enddate" data-msg="请选择时间段" class="texendtime_" autocomplete="off"/>
					<i class="calendarBtn c1_"></i>
					<i class="calendarBtn c2_"></i>
				</div>
			</div>
			<div class="_dname">
				<span class="coupons_dname">发行数量：</span>
				<input type="text" class="coupons_title coupon_num_ticket" name="nums" value="">
			</div>
			<!-- <div class="_dname">
				<span class="coupons_dname">领取限制：</span>
				<div>
					<label class="labela">
						<input type="radio" name="confirm_wx" value="0" class="confirm_" checked="checked">
						<input type="text" class="label_ticke"  name="conf_peo" value="">
						<span class="label_ti">张/人</span>
					</label>
					<label class="labelb">
						<input type="radio" name="confirm_wx" value="1" class="confirm_wx">
						<input type="text" class="label_people" name="conf_day" value="">
						<span class="label_ti">张/天/人</span>
					</label> 
				</div>
			</div> -->
		</div>
	</form>
	<span class="save_btn">发布</span>
</div> 
<div class="bgbox">	</div>
<div class="checkchoose_box " id="checkchoose_box">
		<div class="theme_top">
			<p class="ticket_name_ch">适用产品</p>
		</div>
		<div class="theme_select">
			<label class="labeld">
				<input type="radio" name="chose_" value="0" class="chose_all" checked="checked">
				<span class="theme_t">所以产品</span>
			</label>
			<label class="labeld">
				<input type="radio" name="chose_" value="1" class="chose_se">
				<span class="theme_t">选择产品</span>
			</label> 
		</div>
		<div class="selectbox">
			<ul id="prods_list" class="ul_list">
				<ul id="selected_lnk_prods"></ul>
			</ul>
		</div>
		<div class="sereize">
			<input type="text" class="suggest_input"  autocomplete="off" id="land_a" >
			<i class="iconfont select_icon">&#xe600;</i>
			<ul class="suggest_ul" style="display: none;"></ul>
			<div class="order_div" id="order_lili">
				<ul class="order_ul"></ul>
			</div>
		</div>
		<div class="btnbox">
			<span class="btn_base btn_cancels">取消</span>
			<span class="btn_base sure_s btn_sure_all" >确定</span>
		</div>
</div>
<script type="text/javascript" src="http://www.12301.cc/tpl/prod_sale/js/class.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/ajax.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/publish_coupons/js/publish_test.js"></script>
<script src="http://www.12301.cc/js/WdatePicker.js"></script>
<script>
$("#txtStartTime").bind("click focus", function () {             
   var endtimeTf = $dp.$('txtEndTime');             
   WdatePicker({                            
	   maxDate: '#F{$dp.$D(\'txtEndTime\')}',      
	   dateFmt: "yyyy-MM-dd HH:mm:ss",              
	   onpicked: function () { endtimeTf.focus(); }          
		});         
   });          
$("#txtEndTime").bind("click focus", function () {       
		WdatePicker({           
		   minDate: '#F{$dp.$D(\'txtStartTime\')}', 
		   dateFmt: "yyyy-MM-dd HH:mm:ss"       
	   });         
   });
$("#txtStartTime_").bind("click focus", function () {             
   var endtimeTf = $dp.$('txtEndTime_');             
   WdatePicker({                            
	   maxDate: '#F{$dp.$D(\'txtEndTime_\')}',      
	   dateFmt: "yyyy-MM-dd HH:mm:ss",              
	   onpicked: function () { endtimeTf.focus(); }          
		});         
   });          
$("#txtEndTime_").bind("click focus", function () {       
		WdatePicker({           
		   minDate: '#F{$dp.$D(\'txtStartTime_\')}', 
		   dateFmt: "yyyy-MM-dd HH:mm:ss"       
	   });         
   });
  
   

</script>